package com.mairuide.bill.information.tag;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.mairuide._frame.base.BaseModel;

/**
 * 人员标签表
 * @author mh
 *
 */
@Entity
@Table(name="TB_PERSON_TAGE")
public class PersonTag extends BaseModel{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -5719576736501062799L;
	
	/**
	 * 标签id
	 */
	@Id
	@Column(name="tag_id")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "person_tag")
	@SequenceGenerator(name = "person_tag", sequenceName = "SEQ_PERSON_TAG",allocationSize=1)
	private Integer tagId;
	
	/**
	 * 人员id
	 */
	@Column(name="person_id")
	private Integer personId;
	
	/**
	 * 标签名称
	 */
	@Column(name="tag_name")
	private String tagName;
	
	/**
	 * 标签颜色
	 */
	@Column(name="tag_color")
	private String tagColor;

	public Integer getTagId() {
		return tagId;
	}

	public void setTagId(Integer tagId) {
		this.tagId = tagId;
	}

	public Integer getPersonId() {
		return personId;
	}

	public void setPersonId(Integer personId) {
		this.personId = personId;
	}

	public String getTagName() {
		return tagName;
	}

	public void setTagName(String tagName) {
		this.tagName = tagName;
	}

	public String getTagColor() {
		return tagColor;
	}

	public void setTagColor(String tagColor) {
		this.tagColor = tagColor;
	}
	
}
